package br.com.classesinternasedatas;

import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

public class TesteDateLocale {
	public static void main(String[] args) {
		Date d = new Date();
		Calendar c = Calendar.getInstance();
		c.setTime(d);
		c.add(Calendar.HOUR,2);
		Date d1 = c.getTime();
		Locale l = new Locale("pt");
		
		DateFormat df = DateFormat.getDateInstance(DateFormat.FULL,l);
		System.out.println(df.format(d1));
		
		Locale l2 = new Locale("it", "IT");
		DateFormat df1 = DateFormat.getDateInstance(DateFormat.SHORT,l2);
		System.out.println(df1.format(d1));
	}

}
